<include file="Admin@Public/header" /> 

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  <ol class="breadcrumb">
    <li>开发模式</li>
    <li>前台菜单</li>
    <li class="active">添加</li>
  </ol>
   
<form  class="form-horizontal" role="form" action="__URL__/save" >
  <input type="hidden" name="inputId" value="0" > 
  <div class="form-group">
    <label class="col-sm-2 control-label">上级菜单</label>
    <div class="col-sm-4">
      <input type="hidden" name="inputParentId" <if condition="$parentNavObj">value="{$parentNavObj.id}"<else/>value="0"</if>> 
      <p class="form-control-static"><if condition="$parentNavObj">{$parentNavObj.name}<else/>作为第一级</if></p>
    </div>
  </div>
  <div class="form-group">
    <label for="inputName" class="col-sm-2 control-label">菜单名</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputName" name="inputName" placeholder="请输入菜单名" datatype="*2-12" errormsg="<i class='icon-warning-sign'></i> 标题在2~12位之间"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！" >
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">菜单名至少2个字符,最多12个字符<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputEname" class="col-sm-2 control-label">E-菜单名</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputEname" name="inputEname" placeholder="请输入英语菜单名" datatype="*2-24" errormsg="<i class='icon-warning-sign'></i> 标题在2~24位之间"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！"  ignore="ignore">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">英语菜单名至少2个字符,最多24个字符<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputUrl" class="col-sm-2 control-label">链接</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputUrl" name="inputUrl" placeholder="以'/'开头" value="{$parentNavObj.model}"> 
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">请输入链接地址，如"/article/read/001"<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
   <div class="form-group">
    <label for="inputTypeId" class="col-sm-2 control-label"> 栏目</label>
    <div class="col-sm-4">
          <?php
            $allTypes = R('Content/Type/tree'); 
          ?>
          <select name="inputTypeId" class="form-control" id="inputTypeId">
            <option value="" >选择栏目</option>
            <volist name="allTypes" id="type">
              <option value="{$type.id}" <if condition="$parentId == $type['id']">selected="selected"</if> >{$type.html}{$type.name}</option>
            </volist>  
          </select>

    </div>
  </div>
  <div class="form-group">
    <label for="inputTarget" class="col-sm-2 control-label">打开方式</label>
    <div class="col-sm-4">
      <select name="inputTarget" class="form-control" id="inputTarget">
        <option value="_self">默认</option>
        <option value="_blank">新窗口</option>
      </select>
    </div>
  </div>  
  <div class="form-group">
    <label for="inputIcon" class="col-sm-2 control-label">Icon</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputIcon" name="inputIcon" placeholder="请输入Icon">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">Icon,显示图标<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputStatus" class="col-sm-2 control-label">是否显示</label>
    <div class="col-sm-4">
      <input type="checkbox" name="inputStatus" value="1" id="inputStatus" checked>显示
    </div>
  </div>
  
  <div class="form-group">
    <label for="inputStatus" class="col-sm-2 control-label"> </label>
    <div class="col-sm-4">
      <input type="button" class="btn btn-primary" value="添加" id="btn_sub"/>
       <a href="__URL__/index" class="btn btn-default" >返回</a>
  </div>
</div>
</form> 
            
           
              
            
            
</div>


<include file="Admin@Public/script_form" /> 
<include file="Admin@Public/footer" /> 
   
